package com.sciencep.pro.core.service.impl;

import com.sciencep.pro.core.domain.entity.UserLeave;
import com.sciencep.pro.core.dao.UserLeaveMapper;
import com.sciencep.pro.core.service.IUserLeaveService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import java.util.Date;

/**
 * @author Sciencep
 */
@Service
public class UserLeaveServiceImpl extends ServiceImpl<UserLeaveMapper, UserLeave> implements IUserLeaveService {

    @Override
    public int getRecord(UserLeave userLeave) {
        return baseMapper.getRecord(userLeave);
    }

    @Override
    public int delLeave(String userId,Date dateFrom, Date dateEnd) {
        return baseMapper.delLeave(userId,dateFrom,dateEnd);
    }
}
